html, body
{
    color: #fff;
    background-color: #3a3a3a;
    font-family: 'Play', 'Helvetica Neue', 'Helvetica', 'Tahoma', sans-serif;
    text-align: center;
}

/* ==================
 *   Topbar
 */
div#topbar
{
    position: fixed;
    top: 0;
    left: 0;
    height: 100px;
    width: 100%;
    padding: 0;
    background-color: #000;
    border-bottom: 1px solid #f0f0f0;
    font-size: 35px;
    line-height: 90px;
    text-align: center;
    padding-right: 583px;
    z-index: 100;
}

div#topbar > div
{
    float: right;
    height: 100%;
    width: 613px;
}

div#topbar > div > div
{
    float: left;
    height: 100%;
    border-left: 1px solid #f0f0f0;
}

div#topbar > div > div#speed
{
    width: 175px;
    border-left: 0;
    font-size: 80px;
    font-weight: bold;
    text-align: right;
    padding-right: 75px;
    background: url('../img/kmph.png') 190px 18px no-repeat;
}

div#power
{
    width: 260px;
}

div#power > span
{
    display: inline-block;
    width: 150px;
    text-align: right;
    font-size: 80px;
    font-weight: bold;
}

div#status
{
    width: 100px;
    background-image: url('../img/viking.png');
    background-position: 0 -200px;
}

div#status.connected
{
    background-position: 0 0;
}

div#status.warning
{
    background-position: 0 -100px;
}

div#status:hover
{
    background-color: #292929;
    
}

ul#topmenu
{
    height: 100px;
    list-style: none;
    margin: 0;
    margin-right: 610px;
    padding: 0;
    overflow: hidden;
}

ul#topmenu > li
{
    display: block;
    float: left;
    width: 24.5%;
    height: 100%;
    border-right: 1px #f0f0f0 solid;
}

ul#topmenu > li:hover
{
    background-color: #292929;
}

ul#topmenu > li.active
{
    background-color: #0f88bf;
}

/*div#topbar > div#connection
{
    float: none;
    position: absolute;
    right: 0;
    top: 101px;
    background-color: #000;
    border-left: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    width: 250px;
    height: 80px;
}*/

/* ==================
 *   Tabs
 */
div#wrap
{
    width: 1360px;
    margin: 110px auto 0 auto;
    text-align: left;
}

div#wrap > div.tab 
{
    display: none;
}

/* ==================
 *   Battery Tab
 */
div#batter-tab
{
    position: relative;
}
div#battery-tab > div.row > div
{
    width: 33%;
}
div.data-row
{
    position: relative;
}
div.data-row > div
{
    width: 450px;
    height: 150px;
}
div#soc
{
    font-size: 30px;
    float: left;
    position: relative;
}
div#soc h3
{
/*    position: absolute;
    top: 0;
    left: 0;*/
    padding: 0;
    margin: 35px 0 0 10px;
}
div#soc-gauge
{
    width: 180px;
    height: 180px;
    top: 0;
    left: 120px;
}
div#soc-value
{
    width: 130px;
    height: 80px;
    top: 100px;
    left: 233px;
    font-size: 60px;
}
div#banks
{
    position: absolute;
    left: 450px;
    text-align: center;
}
div#banks > img
{
    height: 140px;
    padding-top: 5px;
    width: auto;
}
div#banks
{
    width: 400px;
}
div#battery-totals
{
    font-size: 38px;
}
div#battery-tab div#battery-totals
{
    float: right;
    font-size: 23px;
    width: 28%;
    text-align: right;
}
div#battery-totals span.value
{
    display: inline-block;
    width: 3em;
    text-align: right;
    font-weight: bold;
}
div#battery-totals span.unit
{
    display: inline-block;
    width: 2em;
    text-align: center;
    font-weight: bold;
}
div#battery-totals span.desc
{
    display: inline-block;
    width: 8em;
    font-size: 0.6em;
    text-align: left;
}
div#battery-tab > div.banks-row
{

}
div.bank-chart
{
    position: relative;
    float: left;
    width: 450px;
    height: 250px;
}
div.bank-chart > span
{
    display: block;
    font-weight: bold;
    font-size: 6em;
    position: absolute;
    top: -0.1em;
    right: 0;
    z-index: 10;
}
div.bank-chart > div
{
    width: 450px;
    height: 250px;
}

/* ==================
 *   All data tab
 */
div#registers > div
{
    border: 2px dashed #0f88bf;
    width: 28%;
    float: left;
    margin: 3%;
    padding: 3%;
}

/* ==================
 *   Hacks
 */
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}
